#include "stdafx.h"
#include "ProgressWnd.h"
#include "MainWnd.h"

CProgressWnd::CProgressWnd()
	: CDialogWnd(_T("SkinProgressWnd.xml"))
{
}

void CProgressWnd::OnWindowInit(TNotifyUI& msg)
{
	m_pm.FindControl(_T("close_button"))->SetVisible(false);
}

void CProgressWnd::SetProgress(int nPercent)
{
	((CProgressUI*)m_pm.FindControl(_T("progress")))->SetValue(nPercent);
}